<template>
  <view class="buy-page bg-nav-bar-1">
    <NavBar title="优车够精选二手车"></NavBar>
    <CarSource ref="refCarSource" buytype="buycar" showsearch></CarSource>
  </view>
</template>


<script>
import NavBar from "@/components/ui/nav-bar"
import CarSource from "../index/com/carSource"
export default {
  components: {
    NavBar,
    CarSource
  },
  setup() {
    return {
      
    }
  },
  onPullDownRefresh() {
    if (this.$refs.refCarSource?.initPagingQuery instanceof Function) {
      this.$refs.refCarSource.initPagingQuery().finally(() => {
        uni.stopPullDownRefresh();
      })
    }
  },
  onReachBottom() {
    if (this.$refs.refCarSource?.loadPagingMore instanceof Function) {
      this.$refs.refCarSource.loadPagingMore()
    }
  }
}
</script>

<style lang="less" scoped>
@import url(./index.less);
</style>

